home *** CD-ROM | disk | FTP | other *** search
/ Aminet 28 / Aminet 28 (1998)(GTI - Schatztruhe)[!][Dec 1998].iso / Aminet / dev / misc / gms_pictures.lha / COMPILE_PICTURES.TXT next >
Encoding:
Text File  |  1998-10-20  |  1.6 KB  |  39 lines

  1.  
  2. This source code requires the GMS developer archive on Aminet
  3. (dev/misc/gms_dev.lha).  Compilation of this module means that you have
  4. read and agreed to the text in the DISTRIBUTION.TXT file.
  5.  
  6. NOTE:  There is a bug in SAS/C which occurs when using registers a0 and a1
  7. together in a function.  This only happens when both registers are using a
  8. pointer type, such as BYTE *, APTR or struct Object *.  So if you see such
  9. definitions being replaced with LONGs and then being converted inside the
  10. function, it is done specifically to prevent this bug.
  11.  
  12. To compile every part of the pictures module with SAS/C:
  13.  
  14.   1> sc pic_data.c          <Compile the data area>
  15.   1> sc pictures.c          <Compile the code>
  16.   1> sc pic_init.c          <Compile the code>
  17.   1> sc pic_copystructure.c <Compile the code>
  18.   1> sc pic_functions.c     <Compile the code>
  19.   1> link.scr               <Link it>
  20.  
  21. To compile with DiceC:
  22.  
  23.   1> dcc -c -l0 -mD -mi pic_data.c -o pic_data.o
  24.   1> dcc -c -l0 -mD -mi pictures.c -o pictures.o
  25.   1> dcc -c -l0 -mD -mi pic_init.c -o pic_init.o
  26.   1> dcc -c -l0 -mD -mi pic_copystructure.c -o pic_copystructure.o
  27.   1> dcc -c -l0 -mD -mi pic_functions.c -o pic_functions.o
  28.   1> dlink pic_data.o pictures.o pic_init.o pic_copystructure.o
  29.        pic_functions.o tags.o cs.lib -o GMS:System/pictures.mod
  30.  
  31. To compile everything at once using dice, just execute the compile.dcc
  32. script (will take a while though).  The compile.sas script does the
  33. same for SAS/C.
  34.  
  35. If the dpkernel.library is resident after compilation (eg you have run
  36. some demos before-hand) then you will need to do a "flush dpkernel.library"
  37. so that the module will be reloaded the next time you run something.
  38.  
  39.